/*
 * Copyright 2015 YueBaTech.com All right reserved. This software is the
 * confidential and proprietary information of YueBaTech.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with YueBaTech.com.
 */
package com.chris.oauth2;

import java.io.Serializable;

/**
 * web api的返回结果
 * 
 * @author Chris 2015年10月14日 下午2:24:54
 */
public class JsonResult implements Serializable {

	private int ret = 0;
	private Object data = "";
	private Boolean more = null;
	private Long total = null;

	/**
	 * @param ret
	 */
	public JsonResult(int ret) {
		super();
		this.ret = ret;
	}

	/**
	 * @param ret
	 * @param data
	 */
	public JsonResult(int ret, Object data) {
		super();
		this.ret = ret;
		this.data = data;
	}

	public JsonResult(int ret, Object data, Boolean more) {
		super();
		this.ret = ret;
		this.data = data;
		this.more = more;
	}

	public JsonResult(int ret, Object data, long total) {
		super();
		this.ret = ret;
		this.data = data;
		this.total = total;
	}

	/**
	 * @return the ret
	 */
	public int getRet() {
		return ret;
	}

	/**
	 * @param ret
	 *            the ret to set
	 */
	public void setRet(int ret) {
		this.ret = ret;
	}

	/**
	 * @return the data
	 */
	public Object getData() {
		return data;
	}

	/**
	 * @param data
	 *            the data to set
	 */
	public void setData(Object data) {
		this.data = data;
	}

	/**
	 * @return the more
	 */
	public Boolean getMore() {
		return more;
	}

	/**
	 * @param more
	 *            the more to set
	 */
	public void setMore(Boolean more) {
		this.more = more;
	}

	/**
	 * @return the total
	 */
	public Long getTotal() {
		return total;
	}

	/**
	 * @param total
	 *            the total to set
	 */
	public void setTotal(long total) {
		this.total = total;
	}
}
